VERSION 5.00
Begin VB.Form frmCtlPos 
   BorderStyle     =   5  'Sizable ToolWindow
   Caption         =   "Control Positions"
   ClientHeight    =   3135
   ClientLeft      =   60
   ClientTop       =   330
   ClientWidth     =   4680
   Icon            =   "frmCtlPos.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   209
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   312
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton btnTest 
      Caption         =   "Test Button"
      Height          =   495
      Left            =   0
      TabIndex        =   1
      Top             =   0
      Width           =   1335
   End
   Begin VB.Label info 
      BackStyle       =   0  'Transparent
      Caption         =   $"frmCtlPos.frx":000C
      Height          =   1635
      Left            =   720
      TabIndex        =   0
      Top             =   720
      Width           =   3135
   End
End
Attribute VB_Name = "frmCtlPos"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
    If info.Visible Then
        info.Visible = False
    Else
        info.Visible = True
    End If
Else
    btnTest.Move X, Y
    Me.Caption = X & ", " & Y
End If
End Sub

Private Sub Form_Resize()
info.Top = (Me.ScaleHeight / 2) - (info.Height / 2)
info.Left = (Me.ScaleWidth / 2) - (info.Width / 2)
End Sub

Private Sub info_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then info.Visible = False
End Sub
